package com.springboot.service;

import com.springboot.common.Result;
import com.springboot.dto.ProductManageDTO;
import com.springboot.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author zjb
 * @since 2025-10-26
 */
public interface IProductService extends IService<Product> {

    Result getAllOnShelfWithCategoryPage(Integer pageNum, Integer pageSize, Integer status, Integer categoryId, String search, Integer newProduct);

    Result getProductDetailById(Integer productId);

    Result addProduct(ProductManageDTO productManageDTO);

    Result updateProduct(ProductManageDTO productManageDTO);

    Result productBan(Integer productId, Integer status);

    Result productsBan(List<Integer> productIds, Integer status);
}